import Opt from '@/components/dt/info/Opt.js'

class YearOpt extends Opt {
  
  constructor(info) {
    super(info)
    this.build()
  }
  
  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      [{
        title: '工号',
        key: 'workNo',
        text: {}
      },
      {
        title: '姓名',
        key: 'userName',
        text: {}
      },
      {
        title: '在职状态',
        key: 'jobStatusStr',
        text: {}
      }],
      [{
        title: '年度已结奖金',
        key: 'yearSettlementAmount',
        text: {
          type: 'number',
          unit: '元'
        }
      },
      {
        title: '年底结算奖金',
        key: 'yearSettlementAlreadyAmount',
        text: {
          type: 'number',
          unit: '元'
        }
      }]
    ]
  }
}

export default YearOpt
